﻿using MongoDB.Driver;
using System;
using System.Text;
//using Internal.Runtime.CompilerServices;

namespace OrmTest
{
    class Program
    {
        static void Main(string[] args)
        {
            //byte[] arr = new byte[6] { 1, 2, 3, 4, 5, 6 };
            //Span<byte> span = arr.AsSpan();
            //var span2 = span.Slice(0, 4);
            ////byte[] arr2 = span2.ToArray();
            //span2[3] = 22;
            //Memory<Byte> mem = new Memory<byte>(arr);
            //var m2 = mem.Slice(0, 4);
            //mem.ToArray();
            //return;

            #region MongoClient
            //MongoClient client = new MongoClient("mongodb://192.168.52.128:27017");
            //IMongoDatabase database = client.GetDatabase("lut_home");
            //IMongoCollection<UserInfo> collection = database.GetCollection<UserInfo>("lut_home");
            //var s = collection.Find(s => s.name.Equals("lut"));
            //UserInfo user = s.First();
            //if (user != null)
            //{
            //    Console.WriteLine(user.name);
            //}
            #endregion

            Console.Read();
        }
    }
}
